<div class="col-md-12">
    <section class="panel panel-default">
        <input type="hidden" value="{{vm.robotGroupDetail.groupId}}" id="groupId"/>
        <div class="panel-heading">
            <!--<h5>分组详情</h5>-->
            <div class="panel-search form-inline" >
                <div class="input-group">
                    <label style="display: block;line-height: 30px;font-size: 16px;font-weight: bold;">分组名称：<span>{{vm.robotGroupDetail.groupName}}</span></label>
                </div>

                <div class="input-group" style="float: right;">
                    <button type="button" class="btn btn-primary" ng-click="vm.addRobotToGroup()">
                        <i class="fa fa-fw fa-plus"></i>添加
                    </button>
                </div>
            </div>
        </div>
        <table class="am-fade-and-scale table table-hover" >
            <thead>
            <tr>
                <th style="width: 10%;" class="grid-3 clickable" ng-click="vm.sorter.reorder('trueName')">
                    机器人编号<i class="text-info fa fa-fw" ng-show="vm.sorter.order === 'robotNumber'" ng-class="{'fa-sort-down': vm.sorter.reverse, 'fa-sort-up': !vm.sorter.reverse}"></i>
                </th>
                <th style="width: 70%;" class="grid-3 clickable" ng-click="vm.sorter.reorder('aliasName')">
                    添加时间<i class="text-info fa fa-fw" ng-show="vm.sorter.order === 'conpanyId'" ng-class="{'fa-sort-down': vm.sorter.reverse, 'fa-sort-up': !vm.sorter.reverse}"></i>
                </th>
                <th style="width: 20%;">操作</th>
            </tr>
            </thead>
            <tbody class="text-muted">
            <tr ng-repeat="robot in vm.robots | orderBy : vm.sorter.order : vm.sorter.reverse track by $index">
                <td ng-bind="::robot.robotNumber | readable"></td>
                <td ng-bind="::robot.pushInGroupTime | date:'yyyy-MM-dd HH:mm:ss'"></td>
                <td>
                    <a ng-click="vm.delete(robot)">删除</a>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="panel-footer text-center" ng-if="vm.isLoaded">
            <uib-pagination class="pagination-sm" ng-model="vm.queryParams.page" ng-change="vm.initRobotPage()" total-items="vm.totalItems" max-size="vm.queryParams.size"></uib-pagination>
        </div>
    </section>
</div>
<div>
    <script type="text/ng-template" id="myModalContent.html">
        <div class="modal-header">
            <h4 class="modal-title">是否确认将此机器人移除分组？</h4>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary" type="button" ng-click="ok()">确认</button>
            <button class="btn btn-warning" type="button" ng-click="cancel()">取消</button>
        </div>
    </script>

    <script type="text/ng-template" id="tipsModel.html">
        <div class="modal-header">
            <h4 class="modal-title">{{resultMsg}}</h4>
        </div>
        <div class="modal-footer">
            <button class="btn btn-primary" type="button" ng-click="ok()">确认</button>
        </div>
    </script>